package bd.proiect;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ViewGeneral extends Activity{
	
	@Override
	  public void onCreate(Bundle savedInstanceState) {
	     super.onCreate(savedInstanceState);
	     setContentView(R.layout.viewgeneral); 
		
	     Button ViewFamilyButton = (Button) findViewById(R.id.view_family);
	     ViewFamilyButton.setOnClickListener(new OnClickListener() {
	         public void onClick(View v) {
	        	Intent myIntent = new Intent(ViewGeneral.this, ViewFamily.class);
	     		startActivity(myIntent); 
	         }
	     });
	     
	     Button ViewOriginButton = (Button) findViewById(R.id.view_origin);
	     ViewOriginButton.setOnClickListener(new OnClickListener() {
	         public void onClick(View v) {
	        	Intent myIntent = new Intent(ViewGeneral.this, ViewOrigin.class);
	     		startActivity(myIntent); 
	         }
	     });
	     
	     Button ViewGenusButton = (Button) findViewById(R.id.view_genus);
	     ViewGenusButton.setOnClickListener(new OnClickListener() {
	         public void onClick(View v) {
	        	Intent myIntent = new Intent(ViewGeneral.this, ViewGenus.class);
	     		startActivity(myIntent); 
	         }
	     });
	     
	     Button ViewSpeciesButton = (Button) findViewById(R.id.view_species);
	     ViewSpeciesButton.setOnClickListener(new OnClickListener() {
	         public void onClick(View v) {
	        	Intent myIntent = new Intent(ViewGeneral.this, ViewSpecies.class);
	     		startActivity(myIntent); 
	         }
	     });
	     
	}


}
